/***************************************************************************
 *   This is a part of the NextCAD Web APP.                                *
 *   Copyright (C) AMCAX, All rights reserved.                             *
 ***************************************************************************/

// import { Alert, Button } from 'antd';
import { CommandDialog } from '@amcax/base';
import { CurvedBaseCommand, CurvedCmdDialogParams } from '@app-cad/types';
import i18n from 'i18next';

function PointDialog({ title, onClose }: CurvedCmdDialogParams) {
  return (
    <CommandDialog
      title={title}
      onClose={onClose}
      placement='topLeft'>
      TODO
    </CommandDialog>
  );
}

export const cmdMeasureDis: CurvedBaseCommand = {
  id: 'CmdMeasureDis',
  label: '测量间距',
  icon: 'commands/curved/measure-dis',
  help: {
    remark: 'tips.redo',
  },
  create: (label, onClose) => (
    <PointDialog
      title={i18n.t(label)}
      onClose={onClose}
    />
  ),
};
